<?php

/**
 * Folder2tag form base class.
 *
 * @package    alika
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 16976 2009-04-04 12:47:44Z fabien $
 */
class BaseFolder2tagForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'folder_id' => new sfWidgetFormInputHidden(),
      'tag_id'    => new sfWidgetFormInputHidden(),
      'mat_id'    => new sfWidgetFormInputHidden(),
      'tag'       => new sfWidgetFormInput(),
    ));

    $this->setValidators(array(
      'folder_id' => new sfValidatorPropelChoice(array('model' => 'Folder', 'column' => 'id', 'required' => false)),
      'tag_id'    => new sfValidatorPropelChoice(array('model' => 'Tag', 'column' => 'id', 'required' => false)),
      'mat_id'    => new sfValidatorPropelChoice(array('model' => 'Material', 'column' => 'id', 'required' => false)),
      'tag'       => new sfValidatorString(array('max_length' => 250, 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('folder2tag[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Folder2tag';
  }


}
